﻿@model IList<MsForgeReboot.Framework.Entities.User>

@using (Html.BeginForm("UsersToRoles", "Home", FormMethod.Post, new { @id = "usersToRolesForm" })) { 
@Html.TextBox("Role", "")
<table>

@for (int i = 0; i < Model.Count(); i++) {
    

    <tr>
        <td><input type="checkbox" name="Users[@i]" value="@Model[i].Username" /></td>
        <td>
            @Html.DisplayFor(modelItem => modelItem[i].Username)
        </td>
        <td>
            @Html.DisplayFor(modelItem => modelItem[i].PublicName)
        </td>
    </tr>
}

</table>
    <button class="btn">Submit</button>
}
